//
//  ShellNodeViewModel.m
//  ShellWallert
//
//  Created by lvzhao on 2019/10/24.
//  Copyright © 2019 VV. All rights reserved.
//

#import "ShellNodeViewModel.h"

@implementation ShellNodeViewModel

- (void)setLevelDictionary:(NSMutableDictionary *)levelDictionary{
    _levelDictionary = levelDictionary;
    NSArray *dataArray = levelDictionary[@"lstLevelProfit"]?:@[];
    if([dataArray isKindOfClass:[NSArray class]]){
        for(int i = 0; i < dataArray.count; i++){
              ShellNodeModel *nodeModel = [ShellNodeModel mj_objectWithKeyValues:dataArray[i]];
              [self.dataArray addObject:nodeModel];
          }
    }
  
}

@end
